#ifndef BIT_WIN_COLUMNS_H
#define BIT_WIN_COLUMNS_H


#include "bit_range.h"
#include "row_column_bases.h"


namespace BitWin
{


// Column concreete class, represents column,
// displaying bits in the corresponding range.
class BitsColumn: public Column
{
    // The range of bits in the column
    const BitRange _range;

public:

    BitsColumn(const QString& title_, const BitRange& range_);

    virtual QVariant data(
        int role, const Row* row, const PRowText& data_
    ) const;

    // For test purposes only
    bool operator==(const BitsColumn& rhs) const;
    QString repr() const;
};


} // BitWin namespace end


#endif
